package com.pig4cloud.pig.village.api.dto;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.pig4cloud.pig.village.api.entity.RewardInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author limbray.li
 * @date 2021/6/12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("红黑榜-表格")
public class RewardInfoDTO extends RewardInfo {
	@ApiModelProperty(value = "确认人")
	private String checkUserName;
	@ApiModelProperty(value = "责任人")
	private String villager;
	@ApiModelProperty(value = "责任队")
	private String teamName;
	@ApiModelProperty(value = "责任户")
	private String familyName;
	@ApiModelProperty(value = "常住")
	private Integer stay;
	@ApiModelProperty(value = "户代表")
	private String familyLeader;
	@ApiModelProperty(value = "事件编号")
	private String eventNum;
	@ApiModelProperty(value = "事件概述")
	private String eventDesc;
	@ApiModelProperty(value = "处理方式及结果")
	private String eventResult;
	@ApiModelProperty(value = "整改情况")
	private String eventImprove;
	@ApiModelProperty(value = "五大类")
	private String welfareName;
	@ApiModelProperty(value = "图片列表")
	private List<ImageDto> urlList;

	public List<ImageDto> getUrlList() {
		if(CollectionUtils.isEmpty(urlList)){
			urlList = new ArrayList<>();
		}
		return urlList;
	}
}
